<?php defined('ByShopWWI') or exit('Access Invalid!');?>

<div class="wrap">
  <div class="tabmenu">
    <?php include template('layout/submenu'); ?>
  </div>
  <div class="alert">
      <span class="mr30">今日佣金收入：<strong class="mr5 red" style="font-size: 18px;"><?php echo $output['record_today_amount'];?></strong>元</span>
      <span>本月佣金收入：<strong class="mr5 blue" style="font-size: 18px;"><?php echo $output['record_month_amount'];?></strong>元</span>
  </div>
  <table class="ncm-default-table">
    <thead>
      <tr>
        <th class="w10"></th>
        <th class="w150 tl">创建时间</th>
        <th class="w150 tl">订单号</th>
        <th class="w150 tl">商品名称</th>
        <th class="tl">销售数量</th>
        <th class="tl">佣金（元）</th>
        <th class="tl">购买人</th>
        <th class="tl">会员层级</th>
      </tr>
    </thead>
    <tbody>
      <?php  if (count($output['list'])>0) { ?>
      <?php foreach($output['list'] as $v) { ?>
      <tr class="bd-line">
        <td></td>
        <td class="goods-time tl"><?php echo @date('Y-m-d H:i:s',$v['order_time']);?></td>
        <td class="tl"><?php echo $v['order_sn'];?></td>
        <td class="tl"><?php echo $v['goods_name'];?></td>
        <td class="tl"><?php echo $v['goods_num'];?></td>
        <td class="tl"><?php echo ncPriceFormat($v['brokerage_amount']);?></td>
        <td class="tl"><?php echo $v['buyer_name'];?></td>
        <td class="tl"><?php echo $v['buyer_floor'];?></td>
      </tr>
      <?php } ?>
      <?php } else {?>
      <tr>
        <td colspan="20" class="norecord"><div class="warning-option"><i>&nbsp;</i><span><?php echo $lang['no_record'];?></span></div></td>
      </tr>
      <?php } ?>
    </tbody>
    <tfoot>
      <?php  if (count($output['list'])>0) { ?>
      <tr>
        <td colspan="20"><div class="pagination"> <?php echo $output['show_page']; ?></div></td>
      </tr>
      <?php } ?>
    </tfoot>
  </table>
</div>
